package dao

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Name string `gorm:"type:varchar(20);not null;comment:名称"`
	Pass string `gorm:"type:varchar(40);not null;comment:密码"`
}

type Dynamic struct {
	gorm.Model
	UserId  int    `gorm:"type:int(20);not null;comment:用户id"`
	Content string `gorm:"type:varchar(255);not null;comment:内容"`
	Types   int    `gorm:"type:int(20);not null;default:1;comment:类型"`
	Likes   string `gorm:"type:varchar(50);not null;comment:点赞"`
}

type Follow struct {
	gorm.Model
	UserId   int `gorm:"type:int(20);not null;comment:用户id"`
	AuthorId int `gorm:"type:int(20);not null;comment:作者id"`
}

type Group struct {
	gorm.Model
	MasterId int `gorm:"type:int(20);not null;comment:群主id"`
	OneId    int `gorm:"type:int(20);not null;comment:用户1id"`
	TwoId    int `gorm:"type:int(20);not null;comment:用户2id"`
}

type Member struct {
	gorm.Model
	UserId   int    `gorm:"type:int(20);not null;comment:用户id"`
	Position string `gorm:"type:varchar(20);not null;comment:职位"`
}
